package com.iweibo.ui;

import com.iweibo.R;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AuthActivity extends Activity {
	private static final String TAG = "AuthActivity";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.auth);
		View view = View.inflate(this, R.layout.custom_dialog, null);
		Dialog dialog = new Dialog(this, R.style.auth_dialog);
		dialog.setContentView(view);
		dialog.show();
		Button btnBegin = (Button)view.findViewById(R.id.btn_auth_begin);
		btnBegin.setOnClickListener(listener);
	}
	
	private OnClickListener listener = new View.OnClickListener() {
		
		@Override
		public void onClick(View v) {
			Log.d(TAG, "跳转到授权页面");
			Intent intent = new Intent(AuthActivity.this, WebViewActivity.class);
			startActivity(intent);
		}
	};
}
